#include <iostream>
using namespace std;

char* link(char* a, char* b) {
	int m = 0, n = 0;

	while (a[m] != '\0')
		m++;
	while (b[n] != '\0')
		n++;
	char* c = new char[m + n + 1];
	for (int i = 0; i < m + n; i++) {
		if (i < m) {
			c[i] = a[i];
		}
		else {
			c[i] = b[i - m];
		}
	}
	c[m + n] = '\0';
	return c;
}

int main()
{
	char* a;
	char* b;
	string __a, __b;
	cin >> __a >> __b;
	a = const_cast<char*>(__a.c_str());
	b = const_cast<char*>(__b.c_str());
	cout << link(a, b) << endl;
	return 0;
}